/**
 * token操作模块
 */
const TOKEN_KEY = 'token'
const localStorage = window.localStorage
export const getToken = () => localStorage.getItem(TOKEN_KEY)
export const setToken = token => localStorage.setItem(TOKEN_KEY, token)
export const removeToken = () => localStorage.removeItem(TOKEN_KEY)